package app.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import app.dao.CommunityDao;
import app.dao.FeedbackDao;
import app.domain.Feedback;
import app.service.FeedbackService;

@Service
public class FeedbackServiceImpl implements FeedbackService{
	@Autowired
    private FeedbackDao feedbackDao;
	@Override
	public void addFeedback(Feedback feedback) {
		// TODO Auto-generated method stub
		feedbackDao.addFeedback(feedback);
	}
	@Override
	public List<Feedback> showFeedbackList() {
		// TODO Auto-generated method stub
		return feedbackDao.showFeedbackList();
	}
	@Override
	public void deleteWorkById(Integer id) {
		// TODO Auto-generated method stub
		feedbackDao.deleteWorkById(id);
	}
	@Override
	public List<Feedback> findFeedbackList(Date preDate, Date nextDate, String confident) {
		// TODO Auto-generated method stub
		return feedbackDao.findFeedbackList(preDate,nextDate,confident);
	}
	
}
